package yannan.voiplock4ble.service.ble;

import java.util.UUID;

/**
 * ble需要的一些常量UUID
 */
public class BleUUID {
    public static final UUID[] UUIDS_SCAN;
    public static final UUID UUID_CLIENT_CHARACTERISTIC_CONFIG;
    public static final UUID UUID_HOLLO_DATA_RECEIVE;
    public static final UUID UUID_HOLLO_DATA_SEND;
    public static final UUID UUID_HOLLO_DATA_SERVICE;
    public static final UUID UUID_HOLLO_DATA_ADV;
    public static final UUID UUID_HOLLO_SERVICE = UUID.fromString("0000fff0-0000-1000-8000-00805f9b34fb");

    static {
        UUID_HOLLO_DATA_SEND = UUID.fromString("0000ff01-0000-1000-8000-00805f9b34fb"); //写入的特征的UUID
        UUID_CLIENT_CHARACTERISTIC_CONFIG = UUID.fromString("00002902-0000-1000-8000-00805f9b34fb"); //使能通知的特征描述符的UUID
        UUID_HOLLO_DATA_RECEIVE = UUID.fromString("0000ff02-0000-1000-8000-00805f9b34fb"); //使能通知的特征的UUID
        UUID_HOLLO_DATA_SERVICE = UUID.fromString("0000ff12-0000-1000-8000-00805f9b34fb"); //需要使用的服务的UUID
        UUID_HOLLO_DATA_ADV = UUID.fromString("0000ff08-0000-1000-8000-00805f9b34fb"); //需要使用的服务的UUID
        UUID[] arrayOfUUID = new UUID[1];
        arrayOfUUID[0] = UUID_HOLLO_SERVICE;
        UUIDS_SCAN = arrayOfUUID;
    }
}
